package com.jjsc.product.api.domain.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@Data
public class CategoryTreeVO {
    private Long categoryId;
    private String name;
    private Long parentId;
    private Integer level;
    private Integer sort;
    private String status;
    private String image;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    private List<CategoryTreeVO> children = new ArrayList<>();
}